<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/core" prefix="c"%>
<%@ taglib uri="/tags/fmt" prefix="fmt"%>
<script type="text/javascript" src="js/utils.js"></script>
<html:form action="/listPlantsQuery" method="POST">
	
</html:form>
<br />
<br />
<table align="center" width="400" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>
		<td class="titulocolumna" align="center" width="20">
			<html:link action="/customerFuturePurchaseAddProduct.do"><img alt="<bean:message key="label.common.add"/> <bean:message key="label.plants.name"/>" src="images/nuevo.gif" border="0"></html:link>
		</td>
		
		<td class="titulocolumna" align="center" width="70">
			<bean:message key="label.transports.query.code"/> 
		</td>
		
		<td class="titulocolumna" align="center" width="70">
			<bean:message key="message.futurepurchase.customer.description"/>
		</td>
		
		<td class="titulocolumna" align="center" width="70">
			<bean:message key="message.futurepurchase.ton"/>
		</td>
		
		<td width="20" class="titulocolumna" align="center">
			&nbsp;
		</td>
	</tr>
	<logic:notEmpty name="LIST_CUSTOMER_PURCHASE_PRODUCTS">
		<logic:iterate id="row" name="LIST_CUSTOMER_PURCHASE_PRODUCTS" indexId="int_i">
			<tr class="<%=((int_i.intValue()%2)==0?"columnadatoPar":"columnadatoNon")%>">																	
				<td align="center">&nbsp;</td>
				<td align="center"><bean:write name="row" property="productId"/></td>
				<td align="center"><bean:write name="row" property="description"/></td>
				<td align="center"><bean:write name="row" property="ton"/></td>											
				<td align="center"><a href="#>" onclick="if( confirmDelete('<bean:write name="row" property="productId"/>') )location.href='customerFutureDeleteProduct.do?productId=<bean:write name="row" property="productId"/>';"><img alt="<bean:message key="common.delete"/>  <bean:write name="row" property="productId"/>" src="images/eliminar.jpg" border="0"></a></td>
			</tr>
		</logic:iterate>
	</logic:notEmpty>						
</table>
<br />
<html:button styleClass="boton" property="backButton" onclick="location.href='goFuturePurchaseByCustomer.do';"> <bean:message key="label.common.back"/> </html:button>			
<br />
<br />